package cn.mumzone.pos.presenter.contract;

import java.util.List;

import cn.mumzone.basic.mvp.BasePresenter;
import cn.mumzone.basic.mvp.BaseView;
import cn.mumzone.pos.model.MemberEntity;
import cn.mumzone.pos.model.ServerResultEntity;
import cn.mumzone.pos.model.ServiceEntity;

/**
 * Created by qiuzhenhuan on 2019/6/26.
 */

public interface ServiceListContract {

    interface View extends BaseView {

        void showServiceList(List<ServiceEntity> list);

        void showServerList(ServerResultEntity serverResult);

        void showRemoveService(ServiceEntity removeServiceEvent);

        void showAddServiceToReserveSuccess(String id);

        void showAddServiceToReserveError();

        void showMemberChange(MemberEntity memberEntity);
    }

    interface Presenter extends BasePresenter<View> {

        void loadServiceList(String memberId);

        void loadServerList(String updateType,String appointmentId, String appointmentTime, List<ServiceEntity> serviceList);

        void doAddServiceToReserve(ServiceEntity entity);

        boolean checkLocalAndRemotePrice(List<ServiceEntity> list, List<ServiceEntity> cartServices);
    }
}
